using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ComponentModel;
using EcsSiteDSTableAdapters;


namespace SiteECSWeb
{
    [DataObject]
    public class EmpPostitionBLL
    {
        private EmpPostitionTableAdapter _EmpPostitionTableAdapter = null;

        protected EmpPostitionTableAdapter EmpPostitionTableAdapter
        {
            get
            {
                if (_EmpPostitionTableAdapter == null)
                {
                    _EmpPostitionTableAdapter = new EmpPostitionTableAdapter();
                }
                return _EmpPostitionTableAdapter;
            }

        }

        #region Select EmpPostitionData
        
        [DataObjectMethodAttribute(DataObjectMethodType.Select, true)]
        public EcsSiteDS.EmpPostitionDataTable  GetEmpPostitionData()
        {
            return EmpPostitionTableAdapter.GetEmpPostitionRowRankData();
        }


        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.EmpPostitionDataTable GetEmpPostitionDataByPostitionID(int PotitionID)
        {
            return EmpPostitionTableAdapter.GetEmpPostitionDataByEmpPostitionId(PotitionID);
        }



        #endregion


    }
}